/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.adapter.driving.persistence.api;

import com.lap.auth.adapter.driving.persistence.api.po.ApiViewLogPo;
import com.lap.auth.domain.api.ApiViewLog;
import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface ApiViewLogConverter {

  @Mapping(target = "event", ignore = true)
  ApiViewLog toDomain(ApiViewLogPo apiViewLogPo);

  List<ApiViewLog> toDomains(List<ApiViewLogPo> list);

  ApiViewLogPo toPo(ApiViewLog apiViewLog);

  List<ApiViewLogPo> toPoList(List<ApiViewLog> list);
}
